package com.koron.css2.clientCenter.mapper;

import com.koron.css2.clientCenter.bean.ValveCloseCountBean;
import com.koron.css2.clientCenter.bean.ValveCloseDetailBean;
import com.koron.css2.clientCenter.queryBean.ValveCloseQueryBean;
import com.koron.css2.clientCenter.vo.ValveCloseListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ValveCloseDetailMapper {

    void delete(String id);

    List<ValveCloseCountBean> countByValveIds(@Param("ids") List<String> ids);

    void insertBatch(List<ValveCloseDetailBean> detailBeans);


    void updateCloseTime(@Param("id") String id, @Param("account") String account, @Param("name") String name);

    void updateCancelClose(@Param("id") String id, @Param("account") String account, @Param("name") String name);

    void updateCloseOperator(@Param("id") String id, @Param("operator") String operator, @Param("operatorAccount") String account,
                        @Param("acount")   String acount,  @Param("userName")String userName);

    void updateOpenOperator(@Param("id") String id, @Param("operator") String operator, @Param("operatorAccount") String account,
                            @Param("acount")   String acount,  @Param("userName")String userName);

    List<ValveCloseListVo> closeList(ValveCloseQueryBean queryBean);

    void updateOpenBill(@Param("id") String id, @Param("account") String account, @Param("name") String name);
}